package com.kitking.mybroadcast.staticbroadcast;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;

public class MyStaticReceiverTest extends BroadcastReceiver {
//模拟器重启就能看出来
    private static final String TAG="MyStaticReceiverTest";
    @Override
    public void onReceive(Context context, Intent intent) {
        if (intent !=null)
        {
            String action=intent.getAction();
            Log.d(TAG,"开机广播。。。。。。。。"+action);


        }
        Toast.makeText(context,"--------开机了------",Toast.LENGTH_LONG).show();

    }
}